home *** CD-ROM | disk | FTP | other *** search
- DEFINT a-z
- ' A simple example to show PRINTing in a disk based font.
-
- ''$include graphics.bh
- ''$include diskfont.bh
-
- SUB InitTextAttr(T(1),FontName$,BYVAL Height,BYVAL style,BYVAL flags)
- POKEL VARPTR(T(0))+ta_Name%,SADD(FontName$+CHR$(0))
- t(ta_YSize\2)=Height
- POKEB VARPTR(T(0))+ta_Style,style
- POKEB VARPTR(T(0))+ta_Flags,flags
- END SUB
-
- DIM TextAttr(4)
- LIBRARY OPEN "graphics.library"
- LIBRARY OPEN "diskfont.library"
- InitTextAttr TextAttr(),"helvetica.font",15,0,0
- font& = OpenDiskFont (VARPTR(TextAttr(0)))
- SetFont WINDOW (8), font&
- PRINT "Hello"
- PRINT "Bye!"
-
-
-